#if !defined(AFX_PARTATTACHVIEW_H__F83EEF76_9C37_4D69_973F_1D2A329D3F93__INCLUDED_)
#define AFX_PARTATTACHVIEW_H__F83EEF76_9C37_4D69_973F_1D2A329D3F93__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PartAttachView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPartAttachView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "PhsShareres.h"
#include "PartAttach.h"
#include "FormViewEx.h"

class CPartAttachView : public CFormViewEx
{
protected:
	CPartAttachView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPartAttachView)


public:
	void LinkToObject(PartAttach* pAttach){
		m_pObject = pAttach;
	}

// Form Data
public:
	//{{AFX_DATA(CPartAttachView)
	enum { IDD = IDD_PART_ATTACH };
	CString	m_strCustomID;
	CString	m_strDia;
	CString	m_strMaterial;
	CString	m_strName;
	CString	m_strSpec;
	CString	m_strTemperature;
	CString	m_strWeight;
	CString	m_strClgg;
	//}}AFX_DATA

	CString m_strTableName;
	CString m_strObservation;
private:
	PartAttach* m_pObject;
	BOOL m_bIsFirstVisible;

private:
	void LoadDia();
	void LoadMaterial();
	void LoadBH();
	void LoadOthers();
	void LoadSpec();
	void UpdateObjectData();
// Attributes
public:

private:
	PartAttach m_part;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPartAttachView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CPartAttachView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CPartAttachView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnSelchangeDiaCombo();
	afx_msg void OnChangeTemperatureEdit();
	afx_msg void OnSelchangeSpecCombo();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PARTATTACHVIEW_H__F83EEF76_9C37_4D69_973F_1D2A329D3F93__INCLUDED_)
